import * as TYPES from "./../action-type";

const shopAction = {
  setShopAllData(data) {
    return {
      type: TYPES.SET_SHOP_ALL_DATA,
      data,
    };
  },

  deleteShop(id) {
    return {
      type: TYPES.DELETE_SHOP,
      id,
    };
  },

  editShop(id, data) {
    return {
      type: TYPES.EDIT_SHOP,
      id,
      data,
    };
  },

  addShop(data) {
    return {
      type: TYPES.ADD_SHOP,
      data,
    };
  },

  searchShop(keyword) {
    return {
      type: TYPES.SEARCH_SHOP,
      keyword,
    };
  },
};

export default shopAction;
